<template>
  <h1>App</h1>
  <A />
</template>

<script lang="ts">
import A from "./A.vue";

export default {
  name: "App",
  components: {
    A,
  },
  // 给后代组件提供数据
  provide: {
    num: 1,
    age: 18,
  },
  mounted() {
    console.log(this);
  },
};
</script>

<style scoped></style>
